﻿using System;

namespace Entities
{
    [Serializable]
    public class TimKiemNhanVien
    {
        private int nhanVienID;
        private string maNhanVien;
        private string tenNhanVien;
        private string maPhongBan;
        private string tenPhongBan;
        private string dCThuongTru;
        private string dCTamTru;
        private string dienThoaiCD;
        private string dienThoaiDD;
        private string email;
        private string cMND;
        private DateTime ngayCap;
        private string noiCap;
        private DateTime ngaySinh;
        private string linkImage;
        private string ghiChu;
        private bool deleted;
        public TimKiemNhanVien()
        { }
        public TimKiemNhanVien(int nhanVienID, string maNhanVien, string tenNhanVien, string maPhongBan, string tenPhongBan, string dCThuongTru, string dCTamTru, string dienThoaiCD, string dienThoaiDD, string email, string cMND, DateTime ngayCap, string noiCap, DateTime ngaySinh, string linkImage, string ghiChu, bool deleted)
        {
            this.nhanVienID = nhanVienID;
            this.maNhanVien = maNhanVien;
            this.tenNhanVien = tenNhanVien;
            this.maPhongBan = maPhongBan;
            this.tenPhongBan = tenPhongBan;
            this.dCThuongTru = dCThuongTru;
            this.dCTamTru = dCTamTru;
            this.dienThoaiCD = dienThoaiCD;
            this.dienThoaiDD = dienThoaiDD;
            this.email = email;
            this.cMND = cMND;
            this.ngayCap = ngayCap;
            this.noiCap = noiCap;
            this.ngaySinh = ngaySinh;
            this.linkImage = linkImage;
            this.ghiChu = ghiChu;
            this.deleted = deleted;
        }
        public int NhanVienID
        {
            get { return this.nhanVienID; }
            set
            {
                if (value == null)
                    throw new Exception("nhanVienID not allow nullvalue.");
                this.nhanVienID = value;
            }
        }
        public string MaNhanVien
        {
            get { return this.maNhanVien; }
            set
            {
                if (value == null)
                    throw new Exception("maNhanVien not allow nullvalue.");
                this.maNhanVien = value;
            }
        }
        public string TenNhanVien
        {
            get { return this.tenNhanVien; }
            set
            {
                if (value == null)
                    throw new Exception("tenNhanVien not allow nullvalue.");
                this.tenNhanVien = value;
            }
        }
        public string MaPhongBan
        {
            get { return this.maPhongBan; }
            set
            {
                if (value == null)
                    throw new Exception("maPhongBan not allow nullvalue.");
                this.maPhongBan = value;
            }
        }
        public string TenPhongBan
        {
            get { return this.tenPhongBan; }
            set { this.tenPhongBan = value; }
        }
        public string DCThuongTru
        {
            get { return this.dCThuongTru; }
            set { this.dCThuongTru = value; }
        }
        public string DCTamTru
        {
            get { return this.dCTamTru; }
            set { this.dCTamTru = value; }
        }
        public string DienThoaiCD
        {
            get { return this.dienThoaiCD; }
            set { this.dienThoaiCD = value; }
        }
        public string DienThoaiDD
        {
            get { return this.dienThoaiDD; }
            set { this.dienThoaiDD = value; }
        }
        public string Email
        {
            get { return this.email; }
            set { this.email = value; }
        }
        public string CMND
        {
            get { return this.cMND; }
            set
            {
                if (value == null)
                    throw new Exception("cMND not allow nullvalue.");
                this.cMND = value;
            }
        }
        public DateTime NgayCap
        {
            get { return this.ngayCap; }
            set { this.ngayCap = value; }
        }
        public string NoiCap
        {
            get { return this.noiCap; }
            set { this.noiCap = value; }
        }
        public DateTime NgaySinh
        {
            get { return this.ngaySinh; }
            set { this.ngaySinh = value; }
        }
        public string LinkImage
        {
            get { return this.linkImage; }
            set { this.linkImage = value; }
        }
        public string GhiChu
        {
            get { return this.ghiChu; }
            set { this.ghiChu = value; }
        }
        public bool Deleted
        {
            get { return this.deleted; }
            set { this.deleted = value; }
        }
        public override string ToString()
        {
            return this.nhanVienID + "; " + this.maNhanVien + "; " + this.tenNhanVien + "; " + this.maPhongBan + "; " + this.tenPhongBan + "; " + this.dCThuongTru + "; " + this.dCTamTru + "; " + this.dienThoaiCD + "; " + this.dienThoaiDD + "; " + this.email + "; " + this.cMND + "; " + this.ngayCap + "; " + this.noiCap + "; " + this.ngaySinh + "; " + this.linkImage + "; " + this.ghiChu + "; " + this.deleted + "; ";
        }
      

    }
}